using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Dolls;

public class gDefine 
{
    public static bool gInitFinished = false;
    //public static playerdata gPlayerDate = new playerdata();
    //public static CChapterManager gChapterManger = new CChapterManager();
    //public static StoryManager gStoryManager = new StoryManager();
    public static int gCurBattleChapterId = 0;

    public static uiMainMap gUIMainMap;


    public static void Init()
    {
        if(!gInitFinished)
        {
      //      gPlayerDate.Load();
        //    gChapterManger.Load();
          //  gStoryManager.Load();

            gInitFinished = true;
        }
    }

    public static void SaveAll()
    {
       // gPlayerDate.Save();
        //gChapterManger.Save();
    }


    /// <summary>
    /// 载入玩家数据
    /// </summary>
    public static void LoadData()
    {
        cResInst.Load();
        cDollsHatch.Inst.Load();

        CBuffManager.Inst.Init();
        CDollsManager.Inst.Init();
        CMachineManager.Inst.Init();
        CBulletManager.Inst.Init();
    }


    /// <summary>
    /// 存储玩家数据
    /// </summary>
    public static void SaveData()
    {
        CDollsManager.Inst.Save();
        cDollsHatch.Inst.Save();
        cResInst.Save();
    }


}
